package com.yj.core.annotation;



import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 自定义注解  设置Redis缓存时间
 *
 * @author lfy
 * @date 19-3-28
 **/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface CacheExpire {

    /**
     * expire time , default 60s
     *
     * @return long
     */
    @AliasFor("expire") long value() default 60L;
}
